From: Colin Walters Date: Mon, 6 Apr 2015 15:10:56 +0000 (-0400) Subject: tests: Verify that the pull error was from interruption X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~813 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1e501422e2e5586022c19531b4856da66a479548;p=ostree.git tests: Verify that the pull error was from interruption While working on https://github.com/GNOME/ostree/pull/84 I wanted to verify that nothing else was going wrong. --- diff --git a/tests/test-pull-resume.sh b/tests/test-pull-resume.sh index fcca8393..e0732433 100755 --- a/tests/test-pull-resume.sh +++ b/tests/test-pull-resume.sh @@ -39,9 +39,10 @@ maxtries=`expr $maxtries \* 2` for ((i = 0; i < $maxtries; i=i+1)) do -if ${CMD_PREFIX} ostree --repo=repo pull origin main; then - break; -fi + if ${CMD_PREFIX} ostree --repo=repo pull origin main 2>err.log; then + break + fi + assert_file_has_content err.log 'error:.*Download incomplete' done if ${CMD_PREFIX} ostree --repo=repo fsck; then echo "ok, pull succeeded!"